/**
 * @file wa_misc.h
 *
 */

#ifndef _WA_MISC_H
#define _WA_MISC_H

#ifdef __cplusplus
extern "C" {
#endif

/*********************
 *      INCLUDES
 *********************/

#include "wa_conf.h"
#include <string.h>
#include <stddef.h>
#include <stdbool.h>
#include <stdint.h>
/*********************
 *      DEFINES
 *********************/
#define WA_MATH_MIN(a,b) (a<b?a:b)
#define WA_MATH_MAX(a,b) (a>b?a:b)
#define WA_MATH_ABS(x) ((x)>0?(x):(-(x)))
/**********************
 *      TYPEDEFS
 **********************/
	typedef uint32_t wa_gui_color;

typedef enum
{
	wa_ok = 0,
	wa_nok = 1,
}wa_result;
/**********************
 * GLOBAL PROTOTYPES
 **********************/

/**********************
 *      MACROS
 **********************/

#ifdef __cplusplus
} /* extern "C" */
#endif


#endif
